﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace God.ShoppingWebApi.Entities
{
    public class CommodType : AuditedEntity<Guid>
    {
        /// <summary>
        /// 商品分类Id
        /// </summary>
        public int CommodTypeId { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int CommodTypeParentId { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CommodTypeName { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public int CommodTypeDisplay { get; set; }

        public CommodType()
        {

        }
        public CommodType(Guid cid, int commodTypeId, int commodTypeParentId, string commodTypeName, int commodTypeDisplay, Guid? lastfierId)
        {
            Id = cid;
            CommodTypeId = commodTypeId;
            CommodTypeParentId = commodTypeParentId;
            CommodTypeName = commodTypeName;
            CommodTypeDisplay = commodTypeDisplay;
            LastModificationTime = DateTime.Now;
            CreationTime = DateTime.Now;
            CreatorId = lastfierId;
            LastModifierId = lastfierId;
        }
    }
}
